import {get, post, del, put} from "@/apis/http/request";
import {ExchangeIcon} from "@/apis/model/exchange/ExchangeIconModel";

/**
* 得到列表
* @param params
*/
export const getExchangeIconList = (params: any) => get("/exchangeIcon/list", params)

/**
* 得到分页列表
* @param params
*/
export const exchangeIconPage = (params: any) => post("/exchangeIcon/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteExchangeIconById = (id: number) => del("/exchangeIcon/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertExchangeIcon = (param: ExchangeIcon) => post("/exchangeIcon", param)

/**
* 更新数据
* @param param
*/
export const updateExchangeIcon = (param: ExchangeIcon) => put("/exchangeIcon", param)